<%
//para0,para1 由函数调用传入
var node = para0,prefix=para1,index=para2;
var value = prefix + node.name;
%>
<tr level="${node.level}" class="level-${node.level}"
	<%if(node.hasLeafNode) {%>
		type="file"
	<%}else{ %>
		type="folder"
	<%}%>
>
	<td width="30%" class="role-authority-name">
		${prefix}<!-- <span style="border-left: red dotted 2px;text-align:center;">……</span> -->
		<%if(node.hasLeafNode) {%>
			<i class="am-icon-file-text">&nbsp;</i>
		<%}else{ %>
			<i class="am-icon-folder-open">&nbsp;</i>
		<%}%>${node.name}
		<input type="hidden" name="rptList$ctl${index}$hidName" id="rptList_hidName_${index}" value="${node.name}" />
		<input type="hidden" name="rptList$ctl${index}$hidActionType" id="rptList_hidActionType_${index}" value="${node.id}" />
		<input type="hidden" name="rptList$ctl${index}$hidLayer" id="rptList_hidLayer_${index}" value="${node.level}" />
	</td>
	<td class="role-authority-checks">
		<!---->
		<%if(node.hasLeafNode){
			var subIndex = 0;
			for(subNode in node.subNodes){%>	
				<label for="rptList_cblActionType_${index}_${subIndex}_${index}">
				<input id="rptList_cblActionType_${index}_${subIndex}_${index}" type="checkbox" name="rptList$ctl$cblActionType$${index}_${subIndex}" value="${subNode.id}" <%if(subNode.selected){%>checked<%}%>/>${subNode.name}</label>&nbsp;
		<%		
				subIndex = subIndex+1;				
			}
		}%>                                      
	</td>
	<td align="center">
		<input class="role-authority-checkall" name="checkAll" type="checkbox" value="${node.id}" />
	</td>
</tr>
<%
var nextIndex = index + 1;
if(node.subNodes!=null&&node.hasLeafNode==false){
	for(subNode in node.subNodes){
	   nextIndex = printNode(subNode,prefix+"&nbsp;&nbsp;",nextIndex);
	}	
}
return nextIndex;
%>